<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
		<link href="css/main.css" rel="stylesheet" type="text/css" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<link href="css/seller.css" rel="stylesheet" type="text/css" />
		<title>订单记录</title>
	</head>

	<body>
		<div align="center">
			<table border="0" cellpadding="0" cellspacing="0" width="910">
				<tbody>
					<tr>
						<td width="100%"></td>
					</tr>
				</tbody>
			</table>
		</div>

		<div id="layout">

			<%@ include file="/WEB-INF/common/header/header.jsp"%>
			<div id="seller_main">
				<%@ include
					file="/WEB-INF/jsp/seller/seller_common/seller_left_nav.jsp"%>
				<div id="seller_main_right">
					<div id="seller_right_top">
						当前位置：订单管理 &gt;&gt;
						<a href="sellerOrdersManager!getAllOrdersList.do">订单记录</a>
					</div>
					<div id="seller_orders_title">
						&nbsp;&nbsp;
						<a href="sellerOrdersManager!getAllOrdersList.do">全部订单</a> &nbsp;
						<a href="sellerOrdersManager!getWaitPayOrdersList.do">等待付款</a>
						&nbsp;
						<a href="sellerOrdersManager!getWaitSendOrdersList.do">等待发货</a>
						&nbsp;
						<a href="sellerOrdersManager!getUserConfirmOrdersList.do">等待确认发货</a>&nbsp;
						<!-- 
						<a href="sellerOrdersManager!.do">等待结单</a> &nbsp;
						-->
						<a href="sellerOrdersManager!getFinishedOrdersList.do">已结单</a>
						&nbsp;
						<a href="sellerOrdersManager!getCancelOrdersList.do">已退单</a>
					</div>

					<div id="seller_orders_list">
						<table width="691" border="0" cellpadding="0" cellspacing="0"
							class="seller_orders_list">
							<tr>
								<td width="47" height="32">
									订单号
								</td>
								<td width="45">
									商品名称
								</td>
								<td width="64">
									单价
								</td>
								<td width="54">
									手机号
								</td>
								<td width="57">
									数量
								</td>
								<td width="40">
									下单时间
								</td>
								<td width="83">
									成交时间
								</td>
								<td width="94">
									订单金额
								</td>
								<td width="104">
									状态
								</td>
								<td width="103">
									操作
								</td>
							</tr>
							<s:iterator value="ordersList">
								<tr>
									<td height="50">
										<s:property value="ordersNum" />
									</td>
									<td>
										<a href=""><s:property value="productName" />
										</a>
									</td>
									<td>
										<s:property value="productPrice" />
									</td>
									<td>
										<s:property value="user.telephone" />
									</td>
									<td>
										<s:property value="productNum" />
									</td>
									<td>
										<s:date name="createDate" format="yyyy-MM-dd" />
									</td>
									<td>
										<s:if test="doneDate == null | doneDate == ''">
										交易进行中										</s:if>
										<s:else>
											<s:date name="doneDate" format="yyyy-MM-dd" />
										</s:else>
									</td>
									<td>
										<s:property value="allMoney" />
									</td>
									<td>
										<s:if test="status == 0">未完成交易</s:if>
										<s:elseif test="status == 1">已付款未发货</s:elseif>
										<s:elseif test="status == 2">已发货未确认</s:elseif>
										<s:elseif test="status == 3">交易完成</s:elseif>
										<s:else>交易已取消</s:else>
									</td>
									<td>
										<s:if test="status == 0">
											<a
												href="sellerOrdersManager!cancelOrdersOperator.do?id=<s:property value="id"/>">取消交易</a>
										</s:if>
										<s:elseif test="status == 4">交易已取消</s:elseif>
										<s:else>正在交易</s:else>
									</td>
								</tr>
							</s:iterator>
							<tr>
								<td colspan="10">
									<jsp:include page="/WEB-INF/jsp/page.jsp">
										<jsp:param name="url"
											value="sellerOrdersManager!getAllOrdersList.do" />
									</jsp:include>
								</td>
							</tr>
						</table>
					</div>

				</div>

			</div>
			<%@ include file="/WEB-INF/common/footer/footer.jsp"%>
		</div>
	</body>
</html>

